Looks like the user used a control-C, or the command HI to terminate the
script, so we'll try to exit cleanly.
1halt:
2break_c:
3 lister set thishandle handler
4 lister clear thishandle
5 lister set thishandle path
6 lister set thishandle title 'ArcDir.dopus5 halted.'
7 lister refresh thishandle full
8 lister set thishandle title
9 exit
Line:
1 - 2 Sub-routine labels, in this case since we want to do the same things
if either of these events occur, it's OK to have them both together.
3 We clear the custom handler for this lister by setting it to nothing.
4 We clear the contents of the lister.
5 Set the path to nothing.
6 Set the title to say this lister is halted.
7 Do a full refresh so we get to see the changes above.
8 Set the lister title to the default.
9 Exit the script.
|